package com.chunfeng.mypen.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 权限-路由关系表
 *
 * @author by 春风能解释
 * <p>
 * 2023/11/15
 */
@Data
@NoArgsConstructor
public class PermissionRouter implements Serializable {
    /**
     * 序列化常量
     */
    @ApiModelProperty(value = "序列化字段", hidden = true)
    private static final long serialVersionUID = 6621010193504714607L;
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键", allowEmptyValue = true)
    private String id;
    /**
     * 权限ID
     */
    @ApiModelProperty(value = "权限ID")
    private String permissionId;
    /**
     * 路由ID
     */
    @ApiModelProperty(value = "路由ID")
    private String routerId;
    /**
     * 状态(0正常,1失效)
     */
    @ApiModelProperty(value = "状态", allowableValues = "0,1", allowEmptyValue = true)
    @TableLogic
    private Integer status;
}
